package com.ruoyi.management.operation.service.impl;

import com.ruoyi.management.operation.mapper.OperationMapper;
import com.ruoyi.management.operation.ro.GetOperationDetailParam;
import com.ruoyi.management.operation.ro.GetOperationListParam;
import com.ruoyi.management.operation.service.OperationService;
import com.ruoyi.management.operation.vo.GetOperationDetailVo;
import com.ruoyi.management.operation.vo.GetOperationListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 营运信息管理
 * 
 * @author ruoyi
 * @date 2021-12-07
 */
@Service
public class OperationServiceImpl implements OperationService
{
    @Autowired
    private OperationMapper operationMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<GetOperationListVo> getList(GetOperationListParam param) {
        return operationMapper.getList(param);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<GetOperationDetailVo> getListDetail(GetOperationDetailParam param) {
        return operationMapper.getListDetail(param);
    }
}
